Class PlayerCollector
extends Mapexternal item Map<number, Playerclass PlayerStructures/Player>
Constructor
constructor(game: Gameclass GameStructures/Game)
Properties
Methods
fetchPlayerArray():
{ count: number, firstPlayerAddress: number }
Returns the address of the first player in the player array, and the length of the array.
filter(cb: PlayerCollectorFiltertype PlayerCollectorFilterCollectors/PlayerCollectorFilter): Arrayexternal item Array<Playerclass PlayerStructures/Player>
Filters all players in the map. Similar to Array#map